**Kalmoe & Mason - How to Measure Public Support for Political Violence 

*Replication File for June 2021 YouGov Analysis


use "/Users/npkalmoe/Dropbox/Research/A Publishing/A Mason-Kalmoe Extreme Partisanship/June 2021 YouGov/June 2021 YouGov.dta", clear

svyset [pw=weight]
set more off

*Partisanship
gen rep3=pid7
recode rep3 1 2 3=-1 4 8 9=0 5 6 7=1
tab rep3 pid7, miss

gen partisan=rep3
recode partisan -1 1=1 0=0

*Randomization - block order
gen mdfirst=Block_rand
recode mdfirst 1=0 2=1

*Violence Items
gen threats=UMD40
recode threats 1=0 2=.33 3=.67 4=1 else=.

gen harass=UMD41
recode harass 1=0 2=.33 3=.67 4=1 else=.

gen violpew=UMD42
recode violpew 1=1 2=0 3=.5 else=.

gen inviol=UMD43
recode inviol 1=0 2=.25 3=.5 4=.75 5=1 else=.

gen inviol24=UMD45
recode inviol24 1=0 2=.25 3=.5 4=.75 5=1 else=.

gen inviol22=UMD46
recode inviol22 1=0 2=.25 3=.5 4=.75 5=1 else=.

gen inviolviol=UMD47
recode inviolviol 1=0 2=.25 3=.5 4=.75 5=1 else=.

*Order Tests
svy: reg threats mdfirst if partisan==1

svy: reg harass mdfirst if partisan==1

svy: reg inviol mdfirst if partisan==1

svy: reg inviol22 mdfirst if partisan==1

svy: reg inviol24 mdfirst if partisan==1

svy: reg inviolviol mdfirst if partisan==1

svy: reg violpew mdfirst if partisan==1
